package cn.mazexal.examapi.dataware;

import cn.mazexal.examapi.models.db.UserQuestionNoteDO;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.Collection;
import java.util.List;

/**
 * Mapper
 */
@Mapper
public interface UserQuestionNoteMapper extends BaseMapper<UserQuestionNoteDO> {


    List<UserQuestionNoteDO> selectByQuestionIds(@Param("questionIds") Collection<Long> questionIds,
                                                 @Param("userId") Long userId);

    UserQuestionNoteDO getItemByQuestionId(@Param("userId") Long userId, @Param("questionId") Long questionId);
}